import { observable } from 'mobx'

export class AuthStore {

    constructor() {
    }

    @observable i: number = 0
    @observable currentUser: IMe | undefined = undefined

    @observable token: string | undefined = undefined
    @observable tokenHead: string | undefined = undefined

    get isLogin() {
        return (typeof this.currentUser !== 'undefined')
    }
}

export default new AuthStore()